package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CpcEf02Mapper;
import com.ruoyi.system.domain.CpcEf02;
import com.ruoyi.system.service.ICpcEf02Service;

/**
 * Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class CpcEf02ServiceImpl implements ICpcEf02Service 
{
    @Autowired
    private CpcEf02Mapper cpcEf02Mapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public CpcEf02 selectCpcEf02ById(Long id)
    {
        return cpcEf02Mapper.selectCpcEf02ById(id);
    }

    @Override
    public CpcEf02 selectCpcEf02ByCId(Long id)
    {
        return cpcEf02Mapper.selectCpcEf02ByCId(id);
    }

    /**
     * 查询列表
     * 
     * @param cpcEf02 
     * @return 
     */
    @Override
    public List<CpcEf02> selectCpcEf02List(CpcEf02 cpcEf02)
    {
        return cpcEf02Mapper.selectCpcEf02List(cpcEf02);
    }

    /**
     * 新增
     * 
     * @param cpcEf02 
     * @return 结果
     */
    @Override
    public int insertCpcEf02(CpcEf02 cpcEf02)
    {
        return cpcEf02Mapper.insertCpcEf02(cpcEf02);
    }

    /**
     * 修改
     * 
     * @param cpcEf02 
     * @return 结果
     */
    @Override
    public int updateCpcEf02(CpcEf02 cpcEf02)
    {
        return cpcEf02Mapper.updateCpcEf02(cpcEf02);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteCpcEf02ByIds(Long[] ids)
    {
        return cpcEf02Mapper.deleteCpcEf02ByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteCpcEf02ById(Long id)
    {
        return cpcEf02Mapper.deleteCpcEf02ById(id);
    }
}
